package cn.edu.ujn.ch10.service;

import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import cn.edu.ujn.ch10.dao.Customer;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:spring-mybatis.xml")
public class CustomerServiceImplTest {
	@Autowired
	private Customer customer;
	@Autowired
	private CustomerServiceImpl cs;

	@Test
	public void testGetCustomerByID() {
		Customer customerByID = cs.getCustomerByID(1);
		System.out.println(customerByID);
		
	}

	@Test
	public void testAddCustomer() {
		fail("尚未实现");
	}

}
